package com.shop.front.dao.system;

import com.shop.jpa.BaseDao;
import com.shop.domain.system.SystemGroupData;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SystemGroupDataDao extends BaseDao<SystemGroupData, Long> {

    @Query(nativeQuery = true, value = "select * from t_system_group_data syd left join t_system_group sg on syd.gid = sg.id where sg.config_name = ?1")
    List<SystemGroupData> findByConfigName(String configName);

}
